package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.Channel;
import com.heima.pojo.dto.ChannelConfigDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ChannelMapper extends BaseMapper<Channel> {

    @Select("select * from tb_channel where inner_code = #{innerCode}")
    List<Channel> channels(Integer innerCode);

    Integer channelConfig(ChannelConfigDTO dto);
}
